<template>
  <div class="footer">
    <div class="footer_box">
      <div class="mall_msg">
        <div class="img"></div>
        <div class="mall_name">这个商城的名字</div>
      </div>
      <div class="right">
        <div
          class="item_list"
          v-for="(partList, index) in itemList"
          v-bind:key="index"
        >
          <ul>
            <li class="item" v-for="itemname in partList" v-bind:key="itemname">
              {{ itemname }}
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      itemList: [
        ["服务保障", "正品保证", "七天无理由退换", "7*8小时客服服务"],
        ["支付方式", "线上支付", "货到付款", "线下付款"],
        ["会员服务", "免费注册", "找回密码", "个人中心"],
        ["物流服务", "商品免邮", "快递配送", "EMS"],
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
@import '@/assets/style/variables.scss';
.footer {
  width: 100%;
  padding: 20px 0;
  background-color: #222;
  color: rgb(177, 176, 176);

  .footer_box {
    width: 80%;
    margin: 20px auto 10px;
    display: flex;
    justify-content: space-around;

    .mall_msg {
      padding: 0 60px;
      border-right: 1px solid #333;

      .img {
        display: block;
        margin: auto;
        width: 54px;
        height: 54px;
        background: url("../assets/logo.png") no-repeat;
        background-size: 100%;
      }
      .mall_name {
        color: $light-green;
        width: 150px;
        font-size: 18px;
        margin: 30px 0 10px;
        text-align: center;
      }
    }

    .right {
      display: flex;
      margin-left: 60px;
      padding-top: 5px;
      font-size: 12px;

      .item_list {
        width: 100px;
        margin-right: 80px;
        .item {
          margin-top: 10px;
          line-height: 25px;
        }
        .item:first-child {
          font-size: 14px;
          margin-top: 3px;
        }
      }
    }
  }
}
</style>